// stylelint-disable declaration-no-important
@import "../../../ng-tools-styles";

.step-line {
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  height: 2rem;
  justify-content: start;
  .step-line-item {
    display: flex;
    -ms-flex: 0 0 16.666666%;
    flex: 0 0 16.666666%;
    max-width: 16.666666%;
    width: 100%;
    line-height: 2rem;
    cursor: pointer;
    user-select: none;
    .step-line-content {
      display: flex;
      width: 100%;
      overflow: hidden;
      margin-right: .5rem;
    }
    .step-line-icon {
      position: relative;
      color: map_get($theme-colors, 'teal');
      font-size: 28px; // 修正font-awesome中图标旋转抖动的问题 字体大小必须是14的倍数才不会抖动 https://github.com/FortAwesome/Font-Awesome/issues/671#issuecomment-338336059
    }
    .step-line-title {
      position: relative;
      padding: 0 .5rem;
      &::after {
        content: '';
        height: 1px;
        width: 9999px;
        background: #cbcbcb;
        display: block;
        position: absolute;
        top: 1rem;
        left: 100%;
      }
    }
    &.active {
      .step-line-title {
        font-weight: bold;
      }
    }

  }
  .step-line-item:last-of-type {
    .step-line-title::after {
      display: none;
    }
  }
}
